package com.lanou3g.code0423;

/**
 * Created by dllo on 18/4/23.
 */
public class Main {
    public static void main(String[] args) {
        //String a = "ABC";
        String a="我";//3个字节
        byte[] bytes = a.getBytes();
        for (byte aByte : bytes) {
            //16进制0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F   10(16)
            //2进制的4位
            //2个字节 2进制8位->2个16进制的数
            System.out.println(Integer.toHexString(aByte));
            //Integer.toHexString(aByte)以16进制的形式表现出来
        }
    }
}
